Repository navigation
docs(contributing): a matching table lives beside its one owner - #2492
Merged
Merged
Conversation
The documents told contributors to declare every list, tuple or frozen set that matches, classifies or filters values in config/constants.py or config/defaults.py, so a table that one module reads lived in a file of another package. Per the owner decision of 2026-10-22 on #1016, a table now lives beside its one owner and moves to config/ only when a second package imports it. CONTRIBUTING.md and docs/ROUTINE_TASKS.md state the rule, and the naming table gives the name of each place. No constant moves and no check is added.
Owner
Author
|
Check results:
Pending a person: review the diff in tuicr ( |
dan-petty
marked this pull request as ready for review
October 28, 2026 18:41
This was referenced Oct 28, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The documents told contributors to declare every list, tuple or frozen set that matches, classifies or filters values in
src/devops_cli/config/constants.pyorsrc/devops_cli/config/defaults.py. A table that one module reads thus lived in a file of another package, far from its owner. The owner decided on 2026-10-22 that a table lives beside its one owner and moves toconfig/only when a second package imports it, that no constant moves in this change, and that no check enforces the placement.CONTRIBUTING.md, "Closed Lists and Standard Parsers": a matching table is a named module-level table beside its one owner, the module that reads it or theconstants.pyof its package. It moves toconfig/only when a module of a second package imports it. A change to the owner of a single-package table inconfig/moves the table to its owner.CONTRIBUTING.md, the Constant row of the naming table:_<NAME>in its one module,<NAME>in a package'sconstants.py, andCONST_<NAME>orDEFAULT_<NAME>inconfig/for a name that two or more packages import.docs/ROUTINE_TASKS.md: the matrix row, the flowchart step and step 3 of the inner loop state the same rule and point toCONTRIBUTING.md.AGENTS.mdalready holds no copy of the rule: it sends code conventions toCONTRIBUTING.md, which holds the parser rule of the decision. The generator ofAGENTS.mdandRELEASE_CYCLE.mdno longer state the rule. The items #1025 to #1032 move the single-owner tables of their packages under this rule.Closes #1016
Change:
openspec/changes/archive/2026-10-28-1016-table-owner-rule/